/**
 * Callback method for when form is shown.
 * @author Roberto J. Blasco
 * @version 1.0
 * @param {Boolean} firstShow form is shown first time after load
 * @param {JSEvent} event the event that triggered the action
 * @private
 *
 * @properties={typeid:24,uuid:"8E2FA231-143B-4C45-92BD-441FD7E5B1D6"}
 */
function onShow(firstShow, event) {


}

/**
 * Callback method when form is (re)loaded.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @private
 *
 * @properties={typeid:24,uuid:"1686A29D-47A9-4774-B2F2-88F471FC2F60"}
 */
function onLoad(event) {

	elements.tab_menu.removeAllTabs();
	forms['lst_adm_t300_perfiles_menus_navigator'].foundset.loadRecords(scopes['adm_t300_perfiles_menus'].mostrar_menu());
	elements.tab_menu.addTab(forms['lst_adm_t300_perfiles_menus_navigator']);
}

/**
 * Muestra la pantalla principal sin navegador
 * @author Roberto J. Blasco
 * @version 1.0
 * @param {JSEvent} event the event that triggered the action
 * @private
 * @properties={typeid:24,uuid:"43318D71-06B8-45EA-AD6E-2135D36961D4"}
 */
function ocultar_navegador(event) {

	globals.$frm_siv_main = forms.pigeon_main_sin_navigator.controller.getName();
	var frm = forms.pigeon_main_con_navigator.elements.tab_principal.getTabFormNameAt(1);
	forms.pigeon_main_sin_navigator.elements.tab_principal.removeAllTabs();
	forms.pigeon_main_sin_navigator.elements.tab_principal.addTab(frm);
	forms.pigeon_main_sin_navigator.controller.show();
}
